home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Graphics Samples / ShapePart Browser ƒ / ShapeAction.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-15  |  1.6 KB  |  67 lines  |  [TEXT/KAHL]

  1. /*
  2.  *    ShapeAction.h
  3.  *
  4.  *    Robert Dierkes,  April 26, 1993
  5.  *
  6.  *    Change History:
  7.  *
  8.  *       4/93    ???        New
  9.  *       4/96    bob        Updated #includes to support changed GX Library names.
  10.  *                    Changed fixed to Fixed.
  11.  *                    Changed boolean to Boolean.
  12.  *                    Added the copyright info.
  13.  *
  14.  *
  15.  *        © Apple Computer, Inc. 1990 - 1996  All rights reserved
  16.  *
  17.  */
  18.  
  19. #include <GXTypes.h>
  20.  
  21. typedef struct
  22. {
  23.         gxShape            *pShapes;
  24.         gxShape            boxes;
  25.  
  26.         gxShapePart        partsHit;
  27.         Fixed            tolerance;
  28.  
  29.         Boolean            showControlPoints,
  30.                         showLocalBounds;
  31.  
  32.         Boolean           testNothing;
  33.         Boolean            testBounds;
  34.         Boolean            testGeometry;
  35.         Boolean            testPen;
  36.         Boolean            testCornerPoint;
  37.         Boolean            testControlPoint;
  38.         Boolean            testEdge;
  39.         Boolean            testJoin;        /* also testGlyphBounds */
  40.         Boolean            testStartCap;    /* also testGlyphFirst  */
  41.         Boolean            testEndCap;        /* also testGlyphLast   */
  42.         Boolean            testDash;        /* also testSideBearing */
  43.         Boolean            testPattern;
  44.         Boolean           testAnything;
  45.  
  46.         ControlHandle  hNothing;
  47.         ControlHandle    hBounds;
  48.         ControlHandle    hGeometry;
  49.         ControlHandle    hPen;
  50.         ControlHandle    hCornerPoint;
  51.         ControlHandle    hControlPoint;
  52.         ControlHandle    hEdge;
  53.         ControlHandle    hJoin;            /* also hGlyphBoundsPart */
  54.         ControlHandle    hStartCap;        /* also hGlyphFirstPart  */
  55.         ControlHandle    hEndCap;        /* also hGlyphLastPart   */
  56.         ControlHandle    hDash;            /* also hSideBearingPart */
  57.         ControlHandle    hPattern;
  58.         ControlHandle  hAnything;
  59.  
  60. } GlobalStructure;
  61.  
  62. #define    notOnAnyShape    -1
  63.  
  64. void ShowControlPoints (gxShape *p1stShape, long shapeCount);
  65. void UpdateHitTestWindow (WindowPtr pWindow);
  66. void UpdateShapePartInfo (Point *pQDWhere, GlobalStructure *pG);
  67.